package com.myq.server;

import com.myq.server.pojo.Admin;
import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @program:yeb
 * @author: 马雨清
 * @Time: 2023/5/1  21:28
 * @description: 操作员工具类
 */
public class AdminUtils {
    public static Admin getCurrentAdmin(){
        return (Admin) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
